﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;

namespace ProductManageSystem.Categories
{
    public class Category : AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 类别名称
        /// </summary>
        [MaxLength(CategoryConsts.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 父级分类Id
        /// </summary>
        public Guid ParentId { get; set; }
    }
}
